package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class ChatRoom implements Serializable {
    private String roomNo;

    private String mChatAdminNum;

    private String fChatAdminNum;

    private String roomName;

    private String roomStatus;

    private String muopo;

    private static final long serialVersionUID = 1L;

    public String getRoomNo() {
        return roomNo;
    }

    public void setRoomNo(String roomNo) {
        this.roomNo = roomNo;
    }

    public String getmChatAdminNum() {
        return mChatAdminNum;
    }

    public void setmChatAdminNum(String mChatAdminNum) {
        this.mChatAdminNum = mChatAdminNum;
    }

    public String getfChatAdminNum() {
        return fChatAdminNum;
    }

    public void setfChatAdminNum(String fChatAdminNum) {
        this.fChatAdminNum = fChatAdminNum;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getRoomStatus() {
        return roomStatus;
    }

    public void setRoomStatus(String roomStatus) {
        this.roomStatus = roomStatus;
    }

    public String getMuopo() {
        return muopo;
    }

    public void setMuopo(String muopo) {
        this.muopo = muopo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ChatRoom other = (ChatRoom) that;
        return (this.getRoomNo() == null ? other.getRoomNo() == null : this.getRoomNo().equals(other.getRoomNo()))
            && (this.getmChatAdminNum() == null ? other.getmChatAdminNum() == null : this.getmChatAdminNum().equals(other.getmChatAdminNum()))
            && (this.getfChatAdminNum() == null ? other.getfChatAdminNum() == null : this.getfChatAdminNum().equals(other.getfChatAdminNum()))
            && (this.getRoomName() == null ? other.getRoomName() == null : this.getRoomName().equals(other.getRoomName()))
            && (this.getRoomStatus() == null ? other.getRoomStatus() == null : this.getRoomStatus().equals(other.getRoomStatus()))
            && (this.getMuopo() == null ? other.getMuopo() == null : this.getMuopo().equals(other.getMuopo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoomNo() == null) ? 0 : getRoomNo().hashCode());
        result = prime * result + ((getmChatAdminNum() == null) ? 0 : getmChatAdminNum().hashCode());
        result = prime * result + ((getfChatAdminNum() == null) ? 0 : getfChatAdminNum().hashCode());
        result = prime * result + ((getRoomName() == null) ? 0 : getRoomName().hashCode());
        result = prime * result + ((getRoomStatus() == null) ? 0 : getRoomStatus().hashCode());
        result = prime * result + ((getMuopo() == null) ? 0 : getMuopo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roomNo=").append(roomNo);
        sb.append(", mChatAdminNum=").append(mChatAdminNum);
        sb.append(", fChatAdminNum=").append(fChatAdminNum);
        sb.append(", roomName=").append(roomName);
        sb.append(", roomStatus=").append(roomStatus);
        sb.append(", muopo=").append(muopo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}